﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="CrudGridView.aspx.cs" Inherits="WebApplication1.CrudGridView" %>
<%@ Register Assembly="DevExpress.Web.v15.2, Version=15.2.4.0, Culture=neutral, PublicKeyToken=b88d1754d700e49a" Namespace="DevExpress.Web" TagPrefix="dx" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
    <title></title>
</head>
<body>
    <form id="form1" runat="server">
    <div>
            <div> 
                <asp:Button ID="btn_Print" runat="server" Text="Print" OnClick="btn_Print_Click"/>                 
            </div>
            <dx:ASPxGridView ID="ASPxGridView1" runat="server" AutoGenerateColumns="False" OnAfterPerformCallback="ASPxGridView1_AfterPerformCallback" OnHtmlRowCreated="ASPxGridView1_HtmlRowCreated" OnRowDeleting="ASPxGridView1_RowDeleting">
                <Columns>
                    <dx:GridViewCommandColumn ShowDeleteButton="True" ShowEditButton="True" >
                    </dx:GridViewCommandColumn>
                    <dx:GridViewCommandColumn  ShowUpdateButton="True" ShowCancelButton="True">
                    </dx:GridViewCommandColumn>
                    <dx:GridViewDataTextColumn Caption="Id" FieldName="Id" >
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Name" FieldName="Name">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Student indentity" FieldName="Sno">
                    </dx:GridViewDataTextColumn>
                    <dx:GridViewDataTextColumn Caption="Graduate from" FieldName="School">
                    </dx:GridViewDataTextColumn>
                </Columns>                

<Styles AdaptiveDetailButtonWidth="22"></Styles>
            </dx:ASPxGridView>

        </div>
    </form>
</body>
</html>
